PROG = mainCombination
SOURCES = $(PROG).cpp  inifiles.cpp fossa.c calllater.cpp \
xmcamera.cpp
CFLAGS = -lstdc++ -O2  -pthread \
 -D NS_DISABLE_HTTP_DIGEST_AUTH -D NS_DISABLE_MQTT  -D NS_DISABLE_SHA1 -D NS_DISABLE_MD5 \
 -D NS_DISABLE_JSON_RPC  -D NS_DISABLE_SOCKETPAIR   -D NS_DISABLE_CGI \
./lib/libeasypusher.a   ./lib/libLocalSDK.a ./lib/libInfra.a ./lib/libStreamReader.a ./lib/libTPBase.a \
$(CFLAGS_EXTRA)

 #-D NS_ENABLE_DEBUG

CC = arm-hisiv100nptl-linux-gcc 
#CC = gcc

all: $(PROG)

$(PROG): $(SOURCES)
	$(CC) $(SOURCES) -o $@ $(CFLAGS)

$(PROG).exe: $(SOURCES)
	cl $(SOURCES) /I.. /MD /Fe$@

test: $(PROG)
	sh unit_test.sh $$(pwd)/$(PROG)

clean:
	rm -rf *.gc* *.dSYM *.exe *.obj *.o a.out $(PROG)
